﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010A1 RID: 4257
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RotaterEnergyInfo : IMessage<RotaterEnergyInfo>, IMessage, IEquatable<RotaterEnergyInfo>, IDeepCloneable<RotaterEnergyInfo>, IBufferMessage
	{
		// Token: 0x170035B6 RID: 13750
		// (get) Token: 0x0600BE20 RID: 48672 RVA: 0x00200BE0 File Offset: 0x001FEDE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RotaterEnergyInfo> Parser
		{
			get
			{
				return RotaterEnergyInfo._parser;
			}
		}

		// Token: 0x170035B7 RID: 13751
		// (get) Token: 0x0600BE21 RID: 48673 RVA: 0x00200BE7 File Offset: 0x001FEDE7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RotaterEnergyInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170035B8 RID: 13752
		// (get) Token: 0x0600BE22 RID: 48674 RVA: 0x00200BF9 File Offset: 0x001FEDF9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RotaterEnergyInfo.Descriptor;
			}
		}

		// Token: 0x0600BE23 RID: 48675 RVA: 0x00200C00 File Offset: 0x001FEE00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RotaterEnergyInfo()
		{
		}

		// Token: 0x0600BE24 RID: 48676 RVA: 0x00200C08 File Offset: 0x001FEE08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RotaterEnergyInfo(RotaterEnergyInfo other) : this()
		{
			this.maxNum_ = other.maxNum_;
			this.curNum_ = other.curNum_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BE25 RID: 48677 RVA: 0x00200C39 File Offset: 0x001FEE39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RotaterEnergyInfo Clone()
		{
			return new RotaterEnergyInfo(this);
		}

		// Token: 0x170035B9 RID: 13753
		// (get) Token: 0x0600BE26 RID: 48678 RVA: 0x00200C41 File Offset: 0x001FEE41
		// (set) Token: 0x0600BE27 RID: 48679 RVA: 0x00200C49 File Offset: 0x001FEE49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MaxNum
		{
			get
			{
				return this.maxNum_;
			}
			set
			{
				this.maxNum_ = value;
			}
		}

		// Token: 0x170035BA RID: 13754
		// (get) Token: 0x0600BE28 RID: 48680 RVA: 0x00200C52 File Offset: 0x001FEE52
		// (set) Token: 0x0600BE29 RID: 48681 RVA: 0x00200C5A File Offset: 0x001FEE5A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurNum
		{
			get
			{
				return this.curNum_;
			}
			set
			{
				this.curNum_ = value;
			}
		}

		// Token: 0x0600BE2A RID: 48682 RVA: 0x00200C63 File Offset: 0x001FEE63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RotaterEnergyInfo);
		}

		// Token: 0x0600BE2B RID: 48683 RVA: 0x00200C71 File Offset: 0x001FEE71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RotaterEnergyInfo other)
		{
			return other != null && (other == this || (this.MaxNum == other.MaxNum && this.CurNum == other.CurNum && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BE2C RID: 48684 RVA: 0x00200CB0 File Offset: 0x001FEEB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MaxNum != 0U)
			{
				num ^= this.MaxNum.GetHashCode();
			}
			if (this.CurNum != 0U)
			{
				num ^= this.CurNum.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BE2D RID: 48685 RVA: 0x00200D08 File Offset: 0x001FEF08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BE2E RID: 48686 RVA: 0x00200D10 File Offset: 0x001FEF10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BE2F RID: 48687 RVA: 0x00200D1C File Offset: 0x001FEF1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CurNum != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.CurNum);
			}
			if (this.MaxNum != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.MaxNum);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BE30 RID: 48688 RVA: 0x00200D78 File Offset: 0x001FEF78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MaxNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MaxNum);
			}
			if (this.CurNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurNum);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BE31 RID: 48689 RVA: 0x00200DD0 File Offset: 0x001FEFD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RotaterEnergyInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MaxNum != 0U)
			{
				this.MaxNum = other.MaxNum;
			}
			if (other.CurNum != 0U)
			{
				this.CurNum = other.CurNum;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BE32 RID: 48690 RVA: 0x00200E20 File Offset: 0x001FF020
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BE33 RID: 48691 RVA: 0x00200E2C File Offset: 0x001FF02C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 88U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MaxNum = input.ReadUInt32();
					}
				}
				else
				{
					this.CurNum = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004C81 RID: 19585
		private static readonly MessageParser<RotaterEnergyInfo> _parser = new MessageParser<RotaterEnergyInfo>(() => new RotaterEnergyInfo());

		// Token: 0x04004C82 RID: 19586
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004C83 RID: 19587
		public const int MaxNumFieldNumber = 12;

		// Token: 0x04004C84 RID: 19588
		private uint maxNum_;

		// Token: 0x04004C85 RID: 19589
		public const int CurNumFieldNumber = 11;

		// Token: 0x04004C86 RID: 19590
		private uint curNum_;
	}
}
